<?php
class Request {

    protected $article_id;
    protected $section_id;

    public function __construct($page_id) {
        $this->article_id=$page_id & 255;
	$this->section_id=$page_id >> 16;
    }

    public function getArticleId(){
        return $this->article_id;
    }

    public function getSectionId(){
        return $this->section_id;
    }

    public function getPageId(){
        $page_id=($this->section_id<<16) + $this->article_id;
        return $page_id;
    }

    public function setArticleId($a_id){
        $this->article_id=$a_id;
    }

    public function setSectionId($s_id){
        $this->section_id=$s_id;
    }
}
?>
